Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: change the color palette #48

Merged
merged 8 commits into from
Mar 13, 2025
Merged

chore: change the color palette #48

merged 8 commits into from
Mar 13, 2025

Conversation

marcosh-ramos
Copy link
Contributor

@marcosh-ramos marcosh-ramos commented Jan 17, 2025

closes #35
closes #45

What?

With this task we are changing the colors to use the new variants introduced by storyblok.

Why?

How to test? (optional)

Open the preview and check the palette of colors and how it looks in the components.

Copy link

vercel bot commented Jan 17, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 13, 2025 11:39am

@marcosh-ramos marcosh-ramos changed the title Change the color palette chore: change the color palette Jan 17, 2025
@@ -28,7 +28,7 @@ export const Shadows = () => {
Display
</Typography>
</Grid>
{Object.keys(theme.shadows).map((index) => (
{Object.keys(theme.shadows.slice(0, 5)).map((index) => (
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did this because for the design system we only have 4 variants of shadow

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@marcosh-ramos, this will cause a breaking change though. The MUI theme type accepts 25 variants, so we must adhere to it.

At a later point, we could create a custom theme, but for now we must adhere to the type.

Perhaps we can make every 5 shadows the same?

  • 0-4 -> 0
  • 5-9 -> 1
  • etc

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that would be strange have the shadows from 0 to 4 mapping to none, at least was not was I would expect if I use shadows[1]

Copy link
Contributor Author

@marcosh-ramos marcosh-ramos Jan 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I went back to what was before. for me would be worst to map like this because people that now use the shadows from 1 to 4 would lose it with this update.

changes:
e66a71c#diff-eaaeb6908dd041479365a278ba68513d6ffb3512501d44999c6e1685cfa89cb1L31
e66a71c#diff-f2727474dc5684e74bd35e134abe55e2a53454471a4f806c72942be9b1b0b458R56-R67

Copy link
Member

@SiloGecho97 SiloGecho97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

Copy link
Collaborator

@johannes-lindgren johannes-lindgren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@marcosh-ramos Nice! I found some breaking changes though.

We'd need a more detailed better description, so that it's clear what we are updating. We will need to communicate all of this in detail in the release notes anyways.

@@ -28,7 +28,7 @@ export const Shadows = () => {
Display
</Typography>
</Grid>
{Object.keys(theme.shadows).map((index) => (
{Object.keys(theme.shadows.slice(0, 5)).map((index) => (
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@marcosh-ramos, this will cause a breaking change though. The MUI theme type accepts 25 variants, so we must adhere to it.

At a later point, we could create a custom theme, but for now we must adhere to the type.

Perhaps we can make every 5 shadows the same?

  • 0-4 -> 0
  • 5-9 -> 1
  • etc

- coming back with the old color variables
- coming back with the 5px to the base_border_radius
- coming back with the old shadows
@johannes-lindgren johannes-lindgren merged commit bf5a237 into main Mar 13, 2025
5 checks passed
@johannes-lindgren
Copy link
Collaborator

@marcosh-ramos I made a couple of adjustments to this PR and merged it. I am going to release it as @storyblok/[email protected]

@johannes-lindgren johannes-lindgren deleted the change-collors branch March 13, 2025 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update text.secondary Adjust primary color
3 participants